package com.abm.dbclases;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/*
 * @DatabaseField(foreign = true, canBeNull = true)
 private InstallationType installationType;
 */
@DatabaseTable(tableName = "ProductLog")
public class ProductLog {
	@DatabaseField(generatedId = true, canBeNull = false)
	private int id;

	@DatabaseField(canBeNull = false)
	private String new_name;

	@DatabaseField(canBeNull = false)
	private int new_quantity;

	@DatabaseField
	private String new_description;

	@DatabaseField
	private String new_photo;

	//@DatabaseField(foreign = true, canBeNull = false)
	// refers to categorieProducts(Id)
	private int new_categorie;

	
	public ProductLog() {
	}

	public ProductLog(String new_name, int new_quantity, String new_description) {
		super();
		//this.id = id;
		this.new_name = new_name;
		this.new_quantity = new_quantity;
		this.new_description = new_description;

	}

	public String getDescription() {
		return new_description;
	}

	public void setDescription(String new_description) {
		this.new_description = new_description;
	}

	public String getName() {
		return new_name;
	}

	public void setName(String new_name) {
		this.new_name = new_name;
	}

	public String getAddress() {
		return new_description;
	}

	public void setAddress(String new_address) {
		this.new_description = new_address;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQuantity() {
		return new_quantity;
	}

	public void setQuantity(int new_quantity) {
		this.new_quantity = new_quantity;
	}

	public int getCategorie() {
		return new_categorie;
	}

	public void setCategorie(int new_categorie) {
		this.new_categorie = new_categorie;
	}

	public String getPhoto() {
		return new_photo;
	}

	public void setPhoto(String new_photo) {
		this.new_photo = new_photo;
	}

	public CharSequence getDesc() {
		return this.new_description;
	}

}
